package com.ruoyi.apduParse.controller;

import com.ruoyi.apduParse.dto.ApduInfoDto;
import com.ruoyi.apduParse.service.IApduTableService;
import com.ruoyi.common.core.domain.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "APDU指令分析Controller")
@RestController
@RequestMapping("/apduSystem/apdu/parse")
@RequiredArgsConstructor(onConstructor_ = @Autowired)
public class ApduParseController {

    private final IApduTableService apduTableService;

    @GetMapping("/usageParse")
    @ApiOperation("指令用途解析")
    public AjaxResult parseApdu(ApduInfoDto apduInfoDto){
        System.out.println("开始解析");
        return apduTableService.parseApdu(apduInfoDto);
    }







}
